package com.lyf.service;

import com.lyf.entity.Payment;
import com.lyf.entity.ResponseResult;
import org.springframework.stereotype.Component;

/**
 * @AUTHOR LYF
 * @DATE 2022/2/6
 * @VERSION 1.0
 * @DESC
 */
@Component
public class PaymentFallbackService implements PaymentService{
    @Override
    public ResponseResult<Payment> create(Payment payment) {
        return new ResponseResult<Payment>(404,"系统8001出问题",null);
    }

    @Override
    public ResponseResult<Payment> getPaymentById(Long id) {
        return new ResponseResult<Payment>(404,"系统8001出问题",null);
    }
}
